import request from '@/utils/request'

// 查询运费变更申请列表
export function listMonetaryChange(query) {
  return request({
    url: '/tws/monetaryChange/list',
    method: 'get',
    params: query
  })
}

// 查询运费变更申请详细
export function getMonetaryChange(id) {
  return request({
    url: '/tws/monetaryChange/' + id,
    method: 'get'
  })
}

// 新增运费变更申请
export function addMonetaryChange(data) {
  return request({
    url: '/tws/monetaryChange',
    method: 'post',
    data: data
  })
}

// 修改运费变更申请
export function updateMonetaryChange(data) {
  return request({
    url: '/tws/monetaryChange/updateMonetaryChange',
    method: 'post',
    data: data
  })
}

// 删除运费变更申请
export function delMonetaryChange(id) {
  return request({
    url: '/tws/monetaryChange/' + id,
    method: 'delete'
  })
}

// 驳回变更运费申请
export function rejectChange(data) {
  return request({
    url: '/tws/monetaryChange/rejectChange',
    method: 'post',
    data: data
  })
}
